package com.computergames.server.message;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;
import java.util.Set;

@Data
@ToString(callSuper = true)
public class CreateRoomRequestMessage extends Message implements HasJwtToken{
    private String roomName;
    private List<String> members;
    private String roomType;
    private String jwtToken;


    public CreateRoomRequestMessage() {
    }


    public CreateRoomRequestMessage(String roomName, String roomType, List<String> members, String jwtToken) {
        this.roomName = roomName;
        this.roomType = roomType;
        this.members = members;
        this.jwtToken = jwtToken;
    }

    @Override
    public int getMessageType() {
        return CreateRoomRequestMessage;
    }
}
